﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IQKS.AWP.DataAccessLayer
{
    public class CountryHeadDAL
    {
        public DataSet GetCountryHead(params object[] param)
        {
            DataSet objDs;

            try
            {
                //todo store proceduer logic wrong need to update as per role code
                objDs = DataUtils.ExecuteDataset("Usp_GetUserinRoleWithRegionAndCountry", param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        //public object SetCountryHead(params object[] param)
        //{
        //    try
        //    {
        //        return DataUtils.ExecuteScalar("Usp_SetUserinRoleWithRegionAndCountry", param);
        //    }
        //    catch (Exception ex)
        //    {
        //        throw new ApplicationException(ex.Message);
        //    }
        //}

    }
}
